import React, { Component } from 'react';
import './issue.scss'
import HeaderIssue from './headerIssue'
import IssueList from './listIssus'
class issue extends Component {
  state = {
    arr: []
  }
  // 发布
  release = (val) => {
     this.setState({
      arr:val
    },function(){
      // console.log(this.state.arr); //加个函数 可以解决异步问题
    }) 
  }

  render () {
    return (<div className='issueBox'>
      <HeaderIssue titleChange={this.titleChange} contentChange={this.contentChange} release={this.release} />
      <IssueList arr={this.state.arr} del={this.del} />
    </div>);
  }
}

export default issue;